import Home from './pages/Home';
import Search from './pages/Search';
import Login from './pages/Login';
import Register from './pages/Register';
import Classify from './pages/Classify';
import Detail from './pages/Details';
import Excellent from './pages/Excellent';
import Newbook from './pages/Newbook';
import Redeem from './pages/Redeem';
import BookShelf from './pages/BookShelf';
import Shelf from './pages/Shelf';
import Coupon from './pages/Coupon';
import Special from './pages/Special';
import Free from './pages/Free';
import Best from './pages/Best';
import Read from './pages/Read';

const routes = [
  {
    path: '/home',
    component: Home
  },
  {
    path: '/search',
    component: Search
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/register',
    component: Register
  },
  {
    path: '/classify',
    component: Classify
  },
  {
    path: '/detail/:bookId',
    component: Detail
  },
  {
    path: '/excellent',
    component:Excellent
  },
  {
    path: '/newbook',
    component:Newbook
  },
  {
    path: '/redeem',
    component:Redeem
  },
  {
    path: '/bookshelf',
    component:BookShelf
  },
  {
    path: '/shelf',
    component:Shelf
  },
  {
    path: '/coupon',
    component:Coupon
  },
  {
    path: '/special',
    component:Special
  },
  {
    path: '/free',
    component:Free
  },
  {
    path: '/best',
    component:Best
  },
  {
    path: '/read/:bookId',
    component:Read
  }
];

export default routes;
